package com.hspedu.homework.homework1;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/4/18
 * @time 18:08
 */
public class Homework01 {
    public static void main(String[] args) {
        String email = "@qq";
        String regex = "\\w*@?([a-zA-Z]+\\.)+[a-zA-Z]+";
        boolean matches = email.matches(regex);
        System.out.println(matches);
    }
}
